//
//  ShangPinCVCell.m
//  1243
//
//  Created by apple on 16/7/13.
//  Copyright © 2016年 1243. All rights reserved.
//

#import "ShangPinCVCell.h"
#define WIDTH [[UIScreen mainScreen] bounds].size.width
#define HEIGHT [[UIScreen mainScreen] bounds].size.height

@implementation ShangPinCVCell

- (instancetype)initWithFrame: (CGRect)frame {
    if (self = [super initWithFrame:frame]) {
        
        self.picImg = [[UIImageView alloc]initWithFrame:CGRectMake(0, 0, frame.size.width, WIDTH/2 - 20)];
        self.picImg.backgroundColor = [UIColor yellowColor];
        
        self.titleLB = [[UILabel alloc]initWithFrame:CGRectMake(10, WIDTH/2 - 20, frame.size.width - 20, 20)];
        self.titleLB.backgroundColor = [UIColor greenColor];
        
        self.moneyLB = [[UILabel alloc]initWithFrame:CGRectMake(10, WIDTH/2 , frame.size.width - 20, 20)];
        self.moneyLB.backgroundColor = [UIColor redColor];
        
        
        [self.contentView addSubview:self.picImg];
        [self.contentView addSubview:self.titleLB];
        [self.contentView addSubview:self.moneyLB];
    }
    return self;
}





@end
